package cn.hd.service;

import cn.hd.entity.Role;
import cn.hd.entity.User;
import com.github.pagehelper.PageInfo;


import java.util.List;
import java.util.Map;

public interface RoleService {

    public PageInfo<Role> selectAll(int pageNum);
    public PageInfo<Role> selectAllBN(int pagenum,int pagesize,Map map);
    public List<Role> selectRole();
    public int addRole(Role role);
    public int deleteRole(long roleId);
    public int updateRole(Role role);
    public Role selectByRid(long rid);

    public int deleteRolePower(long rid);
    public int insertRolePower( long rid,long pid);
    //根据roleId查询user用户
    public PageInfo<User> selectUsersByRoleId(int pagenum,int pagesize,long id);
}
